import request from '@/utils/request'

const gysypmlbBastUrl = '/dms_supervision/yycgypmlb'
const cgdypmxbBastUrl = '/dms_purchase/cgdypmxb'

export function getYycgypmlbList(data) {
  console.log("data..............");
  console.log(data);
  return request({
    url: gysypmlbBastUrl + '/list2',
    method: 'post',
    data: data || {}
  })
}

export function save(data) {
  return request({
    url: cgdypmxbBastUrl,
    method: 'post',
    data: data || {}
  })
}

export function saveList(data) {
  console.log(data);
  return request({
    url: cgdypmxbBastUrl + '/save/list',
    method: 'post',
    data: data || {}
  })
}


export function update(data) {
  return request({
    url: cgdypmxbBastUrl,
    method: 'put',
    data: data || {}
  })
}

export function updateList(data) {
  console.log(data);
  return request({
    url: cgdypmxbBastUrl + '/list',
    method: 'put',
    data: data || {}
  })
}

export function del(id) {
  return request({
    url: cgdypmxbBastUrl + '/' + id,
    method: 'delete',
  })
}

